#include <iostream>

using namespace std;

template<typename T1, typename T2>
class Point {
	public:
		Point(T1 x, T2 y) : m_x(x), m_y(y) {}
		void show();
	private:
		T1 m_x;
		T2 m_y;
};

template<typename T1, typename T2>
void Point<T1, T2>::show()
{
	cout << "x:" << m_x << endl;
	cout << "y:" << m_y << endl;
}
	
int main(void)
{
	Point<int, int> p1(1, 2);
	Point<const char *, const char *> p2("东经120度", "北纬60度");
	Point<float, int> p3(5.6, 10);

	p1.show();
	p2.show();
	p3.show();

	return 0;
}

